<script>
	// 公用接口列表
	global.BaseList = {
		'rebuo': 'https://douban.uieee.com/v2/movie/in_theaters',
		'top': 'https://douban.uieee.com/v2/movie/top250',
		'soon': 'https://douban.uieee.com/v2/movie/coming_soon',
		'search': 'https://douban.uieee.com/v2/movie/search',
		'detail': 'https://douban.uieee.com/v2/movie/subject',
		'cast': 'http://douban.uieee.com/v2/movie/celebrity'
	};
	global.appid = 'wx9615de613badae83';
	global.secret = '41b2abdcd33520e438df2ab2e3300f95';
	global.isLogin = function() {
		let avatar = uni.getStorageSync('wxAvatar');
		let nickName = uni.getStorageSync('wxNickName');
		if (avatar == ''&&nickName =='') {
			return false;
		} else{
			return [avatar,nickName]
		}
	};
	// 本地储存
	global.Store = {
		stetStores: function(key,value) {
			uni.setStorageSync(key,value);
		},
		getStores: function(key) {
			return uni.getStorageSync(key);
		}
	}
	export default {
		onLaunch: function() {
			let that = this;
		},
		onShow: function() {
			
		},
		onHide: function() {
			// console.log('App Hide')
		},
		// 判断是否登录
	}
</script>

<style>
	/*每个页面公共css */
	page{
		/* background-color: #2b2b2b; */
		font-size: 30upx;
	}
	.wrap{
		padding: 0 30upx;
	}
	.bd-bottom-same{
		border-bottom: 1px solid #666;
	}
	.cl-fff{
		color: #fff;
	}
	.cl-bbb{
		color: #bbb;
	}
	.banner image{
		display: block;
		width: 100%;
	}
	swiper{
		min-height: 400upx;
		max-height: 440upx;
		background-color: #F5F5F5;
	}
	.thumbial{
		margin-left: 26upx;
		width: 180upx;
		border-radius: 6px;
	}
	.thumbial-img{
		/* height: 280upx; */
		border-radius: 6px;
		overflow: hidden;
		background-color: #f5f5f5;
	}
	.thumbial image{
		display: block;
		width: 100%;
		border-radius: 6px;
	}
	.thumbial text{
		display: block;
		height: 70upx;
		line-height: 70upx;
		text-align: center;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		color: #666;
		font-size: 26upx;
	}
	.same-title{
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 40upx;
		padding: 30upx 30upx;
	}
	.same-title .title-left{
		color: #333;
		font-size: 34upx;
	}
	.same-title .title-left::before{
		content: '';
		display: inline-block;
		width: 18upx;
		height: 18upx;
		border-radius: 50%;
		background-color: #00cada;
		margin-right: 12upx;
	}
	.same-title .title-right{
		color: #9a9dae;
		font-size: 24upx;
	}
	.media navigator{
		padding: 14upx 0;
		display: flex;
		justify-content: start;
		align-items: center;
	}
	.media .media-left{
		width: 36%;
		margin-right: 6%;
		border-radius: 6px;
		overflow: hidden;
		background-color: #f5f5f5;
	}
	.media .media-left image{
		width: 100%;
		border-radius: 6px;
	}
	.media-right{
		display: inline-block;
		width: 58%;
		overflow: hidden;
		font-size: 28upx;
	}
	.media-right .media-title{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.media-right .media-title .average{
		color: orangered;
		font-size: 32upx;
	}
	.media-right text{
		display: block;
		color: #888;
		height: 42upx;
		line-height: 42upx;
		overflow: hidden;
	}
	.media-right .m-title{
		max-width: 70%;
		overflow: hidden;
		color: #333;
		font-size: 34upx;
		height: 66upx;
		line-height: 66upx;
	}
	.no-more{
		height: 90upx;
		line-height: 90upx;
		text-align: center;
		font-size: 28upx;
		color: #aaa;
	}
	.tips{
		padding: 16upx 0;
		color: #ccc;
		font-size: 20upx;
		text-align: center;
	}
</style>
